import { Color, Font, TextContent, Vector2 } from "../util";
import { Component } from "./Component";

export class TabPage extends Component {
    /**
     * 基础属性
     */
    //TabPage类型
    public type = 9
    public uid = "985b5f12-31c9-4165-b12a-119c2c97f930"
    //名称
    public name = "tabpage"

    //文本内容
    public text: TextContent
    //文本字体
    public font: Font
    //文本颜色
    public font_color: Color
}

export class TabWidget extends Component {
    /**
     * 基础属性
     */
    //TabWidget类型
    public type = 8
    public uid = "985b5f12-31c9-4165-b12a-119c2c97f930"
    //名称
    public name = "tabwidget"

    //子节点
    public children: Array<TabPage> = []

    //布局方式 0 水平布局 1 垂直布局
    public layout_type = 1
    //背景图片
    public bg_image: number
    //Tab栏背景图片 常态 选中态
    public image: Vector2
    //总页数
    public page_num = 2
    //当前页 从1开始
    public cur_page_index = 1
}